@import '~view-design/src/styles/index.less';

@import 'var.less';

// 重置部分样式

// 表格
.ivu-table-wrapper {
    border: @border-width-base @border-style-base @border-color-base;
    border-bottom: 0;
    border-right: 0;
}
.ivu-table:after {
    content: "";
    position: absolute;
    width: @border-width-base;
    height: 100%;
    top: 0;
    right: 0;
    background-color: @border-color-base;
    z-index: 3;
}
.ivu-table {
    &-cell {
        padding-left: 12px;
        padding-right: 12px;
    }
    .ivu-input-group {
        top: 0;
    }
}

.ivu-table-cell-expand {
    display: none;
}
td.ivu-table-expanded-cell {
    padding: 0;
}

.ivu-table-cell-tree {
    margin-top: -3px;
    margin-right: 10px;
    font-size: 14px;
}

.ivu-table-wrapper>.ivu-spin-fix {
    right: 1px;
    bottom: 1px;
    width: auto;
    height: auto;
}

.small-table .ivu-table-wrapper {
    border-color: #f1f1f1;
}
.small-table .ivu-table:before, .small-table .ivu-table:after {
    background-color: #f1f1f1;
}
.small-table .ivu-table-header thead tr th {
    padding: 6px 0;
    background-color: #e9ecf4;
}
.small-table .ivu-table td {
    height: 33px;
}
.small-table .ivu-table-cell {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
}

// Tab选项卡
.ivu-tabs {
    overflow: initial;
}
.ivu-tabs-nav .ivu-tabs-tab {
    font-size: 14px;
}

// 表单
.ivu-form .ivu-form-item-label {
    font-size: 12px;
    color: #333;
}
.ivu-input-group-append .ivu-checkbox-wrapper {
    line-height: 22px;
    .ivu-checkbox {
        vertical-align: text-top;
    }
}
.ivu-form-inline {
    .ivu-form-item {
        margin-bottom: 15px;
        .ivu-form-item-content {
            display: inline-block;
        }
        .ivu-input-wrapper, .ivu-radio-group, .ivu-radio-wrapper, .ivu-select {
            vertical-align: top;
        }
    }
}

.ivu-form-label-top {
    .ivu-form-item {
        margin-bottom: 19px;
    }
    .ivu-form-item-label {
        margin-bottom: 5px;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 12px;
        color: #333;
    }
    .ivu-form-item-error-tip {
        padding-top: 2px;
    }
}

// 弹窗
.ivu-modal-mask {
    background-color: rgba(55, 55, 55, .3);
    -webkit-app-region: no-drag;
}
.ivu-modal-content {
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .35);
}
.ivu-modal-footer {
    .ivu-btn {
        min-width: 100px;
    }
    .ivu-btn-default {
        color: #fff;
        background-color: #646464;
        border-color: #646464;
    }
    .ivu-btn-default:hover {
        background-color: #787878;
        border-color: #787878;
    }
    .ivu-btn-default[disabled] {
        color: #c5c8ce;
        background-color: #f7f7f7;
        border-color: #dcdee2;
    }
}

.ivu-tooltip-inner {
    background-color: rgba(70,76,91,.95);
}

// tab
.ivu-tag {
    line-height: 20px;
}

.ivu-divider-horizontal {
    margin: 20px 0;
}
